﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Effects.Wave
{
    /// <summary>
    ///  Event args for event when IO operations report progress.
    /// </summary>
    public class IoOperationProgressEventArgs:EventArgs
    {
        /// <summary>
        ///  Current progress of IO operation.
        /// </summary>
        private int progress;

        /// <summary>
        ///  Gets current progress.
        /// </summary>
        public int Progress
        {
            get { return progress; }
        }

        /// <summary>
        ///  Creates new IoOperationProgressEventArguments
        /// </summary>
        /// <param name="progress"> Current progress of operation from range [0;100] (like percentage) </param>
        public IoOperationProgressEventArgs(int progress)
        {
            this.progress = progress;
        }
    }

    /// <summary>
    ///  Delegate for event handlers of IoOperation progress events.
    /// </summary>
    /// <param name="sender"> Event sender. </param>
    /// <param name="args"> Event arguments. </param>
    public delegate void IoOperationReportProgressEventHandler(object sender,IoOperationProgressEventArgs args);
}
